<template>
  <div class="denglu">
    <div class="head"><h1>Oj管理系统</h1></div>
    <div class="shuru">
      <h2>密码登录</h2>
      <div class="input-gap"></div>
      <n-input type="text" placeholder="用户名" size="large" />
      <div class="input-gap"></div>
      <n-input
        type="password"
        show-password-on="click"
        placeholder="密码"
        :maxlength="8"
        size="large"
      />
    </div>
    <div class="anniu">
      <n-button strong round type="info" @click="houtai"> 确认 </n-button>
    </div>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from "vue-router";

const router = useRouter();
const houtai = () => {
  router.push("/houtai");
};
</script>

<style scoped>
.denglu {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 450px;
  border-radius: 10px;
  background-color: #e5e0fe;
}
.head {
  width: 360px;
  height: 15%;
  margin: 0 auto;
  text-align: center;
  background-color: #e5e0fe;
}
.shuru {
  height: 45%;
  margin: 10px;
  padding: 10px;
}
.anniu {
  height: 20%;
  display: flex;
  justify-content: center;
  margin: 0 auto;
}
.anniu button {
  width: 90%;
}
.input-gap {
  margin: 25px 0; /* 调整这个值来改变间隔大小 */
}
</style>
